import xjhRequest from '@/service';

enum DashboardAPI {
  categoryGoodCount = '/goods/category/count',
  categoryGoodSale = '/goods/category/sale',
  categoryGoodFavor = '/goods/category/favor',
  addressGoodSale = '/goods/address/sale'
}

export function getCategoryGoodCount() {
  return xjhRequest.get({
    url: DashboardAPI.categoryGoodCount
  });
}

export function getCategoryGoodSale() {
  return xjhRequest.get({
    url: DashboardAPI.categoryGoodSale
  });
}

export function getCategoryGoodFavor() {
  return xjhRequest.get({
    url: DashboardAPI.categoryGoodFavor
  });
}

export function getAddressGoodSale() {
  return xjhRequest.get({
    url: DashboardAPI.addressGoodSale
  });
}
